package com.feisuanyz.dto;

import jakarta.validation.constraints.*;

import java.sql.Time;
import java.util.Date;
import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class EventQuery {

    private Integer eventId;

    @NotBlank(message = "事件标题不能为空")
    private String title;

    private String description;
    private String location;
    private String venue;

    @NotNull(message = "事件日期不能为空")
    @PastOrPresent(message = "事件日期不能早于当前日期")
    private Date eventDate;

    @NotNull(message = "事件时间不能为空")
    private Time eventTime;

    @NotNull(message = "创建人不能为空")
    private Integer createBy;

    private Integer updateBy;
}